package tool;

import java.util.Calendar;

import playlist.Crawler;

public class Perfo {

	static long start;
	
	private static void start() {
		 start = getTime();
	}
	
	private static void stop(String prefix) {		 
		 long dur = getTime() - start;
		 Crawler.getInstance().alert(prefix + dur + " ms.");
	}

	private static long getTime() {
		return Calendar.getInstance().getTime().getTime();
	}
	
}
